<template>
  <div >
      <van-tabbar route>
        <van-tabbar-item replace to="/home" icon="home-o">首页</van-tabbar-item>
        <van-tabbar-item replace to="/"  icon="apps-o">分类</van-tabbar-item>
        <van-tabbar-item replace to="/"  icon="chat-o">发现</van-tabbar-item>
        <van-tabbar-item replace to="/mycar" icon="shopping-cart-o">购物车</van-tabbar-item>
        <van-tabbar-item  icon="user-circle-o" @click="fun">我的</van-tabbar-item>
      </van-tabbar>
  </div>
</template>

<script>
export default {
  data() {
    return {
      
    }
  },
  props: ["x"],
  methods: {
    fun() {
      this.$router.push({
        path: "/per",
        query: {
          name:this.x
        }
      }).catch(err=>err)
    }
  }
}
</script>

<style lang="scss" scoped>

</style>